﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Manage_Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="pragma" content="no-cache"/>
    <%-- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >--%>
    <title>科研项目信息管理平台</title>
    <%--<link rel="stylesheet" type="text/css" href="css/theme/11/index.css" />--%>
    <!--[if lt IE 8]>
        <link href="css/theme/11/index7.css" rel="stylesheet" type="text/css"/>
    <![endif]-->
    <!--[if gte IE 8]>
        <link href="css/theme/11/index.css" rel="stylesheet" type="text/css"/>
    <![endif]-->
    <!--[if !IE]><-->
        <link rel="stylesheet" type="text/css" href="css/theme/11/index.css"/>
    <![endif]-->

    <script type="text/javascript" src="js/jquery/jquery.min.js"></script>

    <script type="text/javascript" src="js/menu.js"></script>

    <script type="text/javascript" src="js/jquery/jquery-ui.custom.min.js"></script>

    <script type="text/javascript" src="js/jquery/jquery.ui.autocomplete.min.js"></script>

    <script type="text/javascript" src="js/jquery/jquery.effects.bounce.min.js"></script>

    <script type="text/javascript" src="js/jquery/jquery.cookie.js"></script>

    <script type="text/javascript" src="js/jquery/jquery.plugins.js"></script>

    <script type="text/javascript" src="js/js_lang.js"></script>

    <script type="text/javascript" src="js/utility.js"></script>

    <script type="text/javascript" src="js/index.js"></script>

    <script type="text/javascript" src="js/sterm.js"></script>

    <script type="text/javascript" src="js/tree.js"></script>
    <script src="js/common.js" type="text/javascript"></script>
</head>

<script type="text/javascript">
    self.moveTo(0, 0);
    self.resizeTo(screen.availWidth, screen.availHeight);
    self.focus();
    var bEmailPriv = true;
    var bSmsPriv = true;
    var bTabStyle = true;
    var OA_TIME = new Date(2011, 12, 10, 14, 24, 00);
    var bInitWeather = true;
    var weatherCity = "54511";
    var menuExpand = "";
    var shortcutArray = Array(1, 4, 147, 8, 130, 5, 131, 9, 16, 15, 76, 62);
    var loginUser = { uid: 1, user_id: "admin", user_name: "系统管理员" };
    var logoutText = "";
    var monInterval = { online: 120, sms: 30 };
    var ispirit = "";
    var statusTextScroll = 10;

    var newSmsHtml = "<div onclick='show_sms();' title='点击查看新消息'><img src='images/sms1.gif' border='0' height='12'> 新消息</div>";

    var newSmsSoundHtml = "<object id='sms_sound' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='/swflash.cab' width='0' height='0'><param name='movie' value='/wav/1.swf'><param name=quality value=high><embed id='sms_sound' src='/wav/1.swf' width='0' height='0' quality='autohigh' wmode='opaque' type='application/x-shockwave-flash' plugspace='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed></object>";
    var show_ip = 1;
    var unit_name = '&nbsp;';
    var orgTree0 = orgTree1 = null;
    var jsonURL0 = '';
    var jsonURL1 = '';
    var user_total_count = "1";
    var portalArray = [];
//    portalArray["0"] = { src: "images/portal/2.png", url: "E/SJCX/PointData.aspx", title: "蒸汽", closable: "true" };
//    portalArray["1"] = { src: "images/portal/1.png", url: "02/SJCX/Plan.aspx", title: "压缩空气", closable: "true" };
//    portalArray["2"] = { src: "images/portal/8.png", url: "email/test.aspx", title: "计划排成", closable: "true" };
//    portalArray["3"] = { src: "images/portal/3.png", url: "E/Index.aspx", title: "电力", closable: "true" };
    portalArray["1"] = { src: "images/portal/4.png", url: "personal.aspx", title: "个人桌面", closable: "false" };
    portalArray["0"] = { src: "images/portal/4.png", url: "Message.aspx", title: "通知公告", closable: "false" };
//    portalArray["5"] = { src: "images/portal/5.png", url: "email/test.aspx", title: "水", closable: "true" };
//    portalArray["6"] = { src: "images/portal/6.png", url: "email/test.aspx", title: "综合数据", closable: "true" };
    var themeArray = [];
    themeArray["10"] = { src: "images/themeswitch/theme_thumb_10.jpg", title: "宁静的思考" };
    themeArray["11"] = { src: "images/themeswitch/theme_thumb_11.jpg", title: "爱心与希望" };
    themeArray["12"] = { src: "images/themeswitch/theme_thumb_12.jpg", title: "纯朴之木屋" };
    var portalLoadArray = ["0", "1"];
    var ostheme = 11;

</script>

<body>
<div id="loading" class="loading" style="color: #1547b8; font-family: 微软雅黑, 宋体; font-size: 32px; height: 100%; margin-top: 100px; padding-top: 100px; text-align: center; width: 100%;">
</div>
<div id="north">
    <div id="north_left">
        <table>
            <tr>
                <td>
                    <img alt="" src="images/portal/product5.png" align="absmiddle"/>
                </td>
            </tr>
        </table>
    </div>
    <div id="north_right">
    </div>
</div>
<div id="taskbar">
    <div id="taskbar_left">
        <a href="javascript:;" id="start_menu" hidefocus="hidefocus"></a>
    </div>
    <div id="taskbar_center">
        <div id="tabs_left_scroll">
        </div>
        <div id="tabs_container">
        </div>
        <div id="tabs_right_scroll">
        </div>
    </div>
    <div id="taskbar_right">
        <a id="portal" href="javascript:openURL(40,'个人桌面','personal.aspx');" hidefocus="hidefocus" title="个人桌面"></a>
        <a id="message" href="javascript:openURL(100, '通知公告', 'Message.aspx');"
           title="通知公告" hidefocus="hidefocus">
        </a>
        <a id="userinfo" href="#" onclick="openDialogResize('WebPages/UserInfo/UserEdit.aspx', 600, 500);"
           title="用户信息" hidefocus="hidefocus">
            <img src="images/useredit.png" style="height: 23px; width: 23px;" alt=""/>
        </a>
        <%-- <a id="person_info"
                href="javascript:;" hidefocus="hidefocus" title="控制面板"></a>--%>
        <%--<a id="theme" href="javascript:;" hidefocus="hidefocus" title="更换皮肤"></a>--%><a id="logout"
                                                                                            href="#" hidefocus="hidefocus" title="注销登录">
        </a><a id="hide_topbar" href="javascript:;"
               hidefocus="hidefocus" title="隐藏顶部">
        </a>
        <!--<a id="reg" href="javascript:;" onClick="openURL('reg', '软件注册', '/reg.php?TAB=1');">软件注册</a>-->
        <%-- <a id="baidu" href="javascript:;" onclick="openURL('', '', 'http://www.baidu.com',1,600,600);">
                百度</a>--%>
    </div>
</div>
<!--搜索-->
<div id="funcbar">
    <div id="funcbar_left">
    </div>
    <div id="funcbar_right">
        <%--<div class="search">
                <div class="search-body">
                    <div class="search-input">
                      <input id="keyword" type="text" value="">
                    </div>
                    <div id="search_clear" class="search-clear" style="display: none;" onclick="document.getElementById('keyword').value = '';this.style.display = 'none';">
                    </div>
                </div>
            </div>--%>
    </div>
</div>
<!-- 搜索 -->
<div id="center">
    <!-- 门户切换 -->
    <div id="portal_panel" class="over-mask-layer">
        <div class="icon">
        </div>
        <div class="left">
        </div>
        <div class="center" id="portal_slider">
        </div>
        <div class="right">
        </div>
        <div class="close">
            <a class="btn-black-a" href="javascript:;" onclick="openURL(40, '门户设置', 'person_info/?MAIN_URL=portal');"
               hidefocus="hidefocus">
                设置
            </a> <a class="btn-black-a" href="javascript:;" onclick="jQuery('#portal').click();"
                    hidefocus="hidefocus">
                关闭
            </a>
        </div>
    </div>
    <!-- 主题切换 -->
    <div id="theme_panel" class="over-mask-layer">
        <div class="icon">
        </div>
        <div class="center" id="theme_slider">
        </div>
        <div class="close">
            <a class="btn-black-a" href="javascript:;" onclick="jQuery('#theme').click();" hidefocus="hidefocus">
                关闭
            </a>
        </div>
        <div class="bottom">
        </div>
    </div>
    <div id="overlay_panel">
    </div>
</div>
<div id="south">
    <table>
        <tr>
            <%-- <td class="left">
                    <div id="online_link" onclick="ViewOnlineUser()" title="共 1 人，1 人在线">
                        在线<span id="user_count">1</span>人</div>
                </td>--%>
            <td class="left">
                <div id="new_sms">
                </div>
                <span id="new_sms_sound" style="height: 1px; width: 1px;"></span>
            </td>
            <td class="center">
                <div id="status_text">
                    科研项目信息管理平台(演示版)
                </div>
            </td>
            <%-- <td class="reg" onclick="openURL('reg', '软件注册', '/reg.php?TAB=1');">
                    软件注册前可运行 <span class="days">90</span> 天
                </td>--%>

            <script type="text/javascript" language="javascript">
                function show_feedback() {
                    mytop = (screen.availHeight - 430) / 2;
                    myleft = (screen.availWidth - 600) / 2;
                    window.open("/module/feedback/", "", "height=450,width=600,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=" + mytop + ",left=" + myleft + ",resizable=yes");
                }
            </script>

            <%--<td style="cursor: hand;" class="right">
                    <div onclick="show_feedback()" title="将问题提交给开发商进行解决">
                        问题反馈</div>
                </td>--%>
            <td class="right">
                <%-- <a id="smsbox" class="ipanel_tab" href="javascript:;" panel="smsbox_panel"
                            title="通知公告" hidefocus="hidefocus"></a><a id="nocbox" class="ipanel_tab" href="javascript:;" panel="noc_panel" title="报警信息"
                        hidefocus="hidefocus"></a>--%>
                <%-- <a id="org" class="ipanel_tab" href="javascript:;"
                                panel="org_panel" title="组织" hidefocus="hidefocus"></a>--%>
            </td>
        </tr>
    </table>
</div>
<!-- 导航菜单 -->
<div id="start_menu_panel">
    <div class="panel-head">
    </div>
    <!-- 登录用户信息 -->
    <div class="panel-user">
        <div class="avatar">
            <img src="images/avatar/0.gif" align="absmiddle"/>
            <div class="status_icon status_icon_1">
            </div>
            <div id="on_status">
                <a href="javascript:;" status="1" class="on_status_1" hidefocus="hidefocus">在线</a>
                <a href="javascript:;" status="2" class="on_status_2" hidefocus="hidefocus">忙碌</a>
                <a href="javascript:;" status="3" class="on_status_3" hidefocus="hidefocus">离开</a>
            </div>
        </div>
        <div class="name" title="用户姓名">
            <%= LoginUser.Instance.RealName %>
        </div>
        <div class="tools">
            <a class="logout" href="###" onclick="logout();" hidefocus="hidefocus" title="注销">
            </a>
            <%-- <a class="exit" href="###" onclick="exit();" hidefocus="hidefocus" title="退出">
                </a>--%>
        </div>
    </div>
    <div class="panel-menu">
        <!-- 一级菜单 -->
        <div id="first_panel">
            <div class="scroll-up">
            </div>
            <ul id="first_menu">
            </ul>
            <div class="scroll-down">
            </div>
        </div>
        <!-- 二级级菜单 -->
        <div id="second_panel">
            <div class="second-panel-head">
            </div>
            <div class="second-panel-menu">
                <ul id="second_menu">
                </ul>
            </div>
            <div class="second-panel-foot">
            </div>
        </div>
    </div>
    <div class="panel-foot">
    </div>
</div>
<div id="overlay_startmenu">
</div>
<!-- 事务提醒 -->
<div id="new_sms_mask">
</div>
<div id="new_sms_panel">
    <div class="button">
        <a class="btn-white-big" href="javascript:;" onclick="ViewNewSms();" hidefocus="hidefocus">
            打开
        </a>&nbsp;&nbsp; <a class="btn-white-big" href="javascript:;" onclick="CloseRemind();"
                            hidefocus="hidefocus">
            关闭
        </a>
    </div>
</div>
<!-- 事务提醒 -->
<div id="new_noc_panel">
    <div id="new_noc_title">
        <span class="noc_iterm_num">共&nbsp;<span></span>&nbsp;条报警提醒</span> <span class="noc_iterm_close">
            </span><span class="noc_iterm_history"><a id="check_remind_histroy" href="javascript:;"
                hidefocus="hidefocus">查看历史记录</a></span>
    </div>
    <div id="nocbox_tips">
    </div>
    <div id="new_noc_list">
    </div>
    <div class="button">
        <a id="ViewAllNoc" class="btn-white-big" href="javascript:;" hidefocus="hidefocus">全部已阅</a>
        <a id="ViewDetail" class="btn-white-big" href="javascript:;" hidefocus="hidefocus">全部详情</a>
        <a id="CloseBtn" class="btn-white-big" href="javascript:;" hidefocus="hidefocus">关闭</a>
    </div>
</div>
<!-- 短信箱 -->
<div id="smsbox_panel" class="dialog">
    <div class="head">
        <div class="head-left">
        </div>
        <div class="head-center">
            <div class="head-title">
                通知公告
            </div>
            <div class="head-close">
            </div>
        </div>
        <div class="head-right">
        </div>
    </div>
    <div class="center">
        <div class="center-left">
            <div id="smsbox_op_all">
                <a href="javascript:;" id="smsbox_read_all" hidefocus="hidefocus">全部已阅</a>
            </div>
            <div id="smsbox_scroll_up">
            </div>
            <div id="smsbox_list">
                <div id="smsbox_list_container" class="list-container">
                </div>
            </div>
            <div id="smsbox_scroll_down">
            </div>
        </div>
        <div class="center-right">
            <div class="center-toolbar">
                <a href="javascript:;" id="smsbox_toolbar_read" hidefocus="hidefocus" title="已阅以下通知">
                    已阅
                </a> <a href="javascript:;" id="smsbox_toolbar_delete" hidefocus="hidefocus" title="删除以下通知">
                    删除
                </a>
            </div>
            <div id="smsbox_msg_container" class="center-chat">
            </div>
            <div class="rapid-reply">
                <select id="smsbox_rapid_reply" class="SmallInput" title="请到系统管理->系统代码->通知快捷回复 进行设置">
                    <option value="">快捷回复</option>
                </select>
            </div>
            <div class="center-reply">
                <textarea id="smsbox_textarea"></textarea>
                <a id="smsbox_send_msg" href="javascript:;" hidefocus="hidefocus">发送</a>
            </div>
        </div>
        <div id="smsbox_tips" class="center-tips">
        </div>
        <div id="no_sms">
            <div class="no-msg" title="暂无新通知">
                <div class="close-tips">
                    本窗口 <span id="smsbox_close_countdown">3</span> 秒后自动关闭
                </div>
                <a class="btn-white-big" href="javascript:;" onclick="send_msg('', '');jQuery('#smsbox').click();"
                   hidefocus="hidefocus">
                    发通知
                </a>&nbsp;&nbsp; <a class="btn-white-big" href="javascript:;"
                                    onclick="jQuery('#smsbox').click();" hidefocus="hidefocus">
                    关闭
                </a>
            </div>
        </div>
    </div>


    <div class="foot">
        <div class="foot-left">
        </div>
        <div class="foot-center">
        </div>
        <div class="foot-right">
        </div>
    </div>
    <div class="corner">
    </div>
</div>
<!-- 组织机构 -->
<%--   <div id="org_panel" class="ipanel">
        <div class="head">
            <div class="left">
                <a href="javascript:;" onclick="ActiveUserTab(this)" id="user_online_tab" class="active"
                    hidefocus="hidefocus"><span>
                        <img src="images/user_list3/user.png" align="absMiddle">
                        在线</span></a></div>
            <div class="right">
                <a href="javascript:;" onclick="ActiveUserTab(this)" hidefocus="hidefocus"><span>
                    <img src="images/user_list3/group.png" align="absMiddle">
                    全部</span></a></div>
        </div>
        <div class="center">
            <div class="top">
                <div id="user_online">
                    <div id="orgTree0">
                    </div>
                </div>
                <div id="user_all" style="display: none;">
                    <div id="orgTree1">
                    </div>
                </div>
            </div>
            <div class="bottom">
                <a class="btn-white-b" href="javascript:;" onclick="SearchUser();" hidefocus="hidefocus">
                    人员查询</a>&nbsp;&nbsp; <a class="btn-white-b" href="javascript:;" onclick="jQuery('#org').click();"
                        hidefocus="hidefocus">关闭</a>
            </div>
        </div>
        <div class="foot">
            <div class="left">
            </div>
            <div class="right">
            </div>
        </div>
        <div class="corner">
        </div>
    </div>--%>
<div id="overlay">
</div>
</body>
</html>